<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html>
<html lang="cn">
<head>

<!-- style start-->
<jsp:include page="../commStyle.jsp" />
<!-- style end-->

</head>

<body>

	<section id="container" class="">

		<!--header start-->
		<jsp:include page="../commHeader.jsp" />
		<!--header end-->


		<!--sidebar start-->
		<jsp:include page="../commNav.jsp" />
		<!--sidebar end-->


		<!--main content start-->
		<section id="main-content">
			<section class="wrapper">
				<!-- page start-->
				<div class="row">
					<div class="col-lg-12">
						<section class="panel">
							<header class="panel-heading">${title}</header>
							<div class="panel-body">
								<div style="color: red;text-align: center;height: 30px;line-height: 30px;">
									${error}
								</div>
								<div class=" form">
									<form class="cmxform form-horizontal tasi-form" id="commentForm" method="post" action="/${action}">
										<input type="hidden" name="id" value="${m.id}">

										<div class="form-group " id="appnameDiv">
										    <label for="appname" class="control-label col-lg-2">应用名</label>
										    <div class="col-lg-6">
										        <input class=" form-control" id="appname" name="appname"  value="${m.appname}"  type="text" required />
										    </div>
										</div>

										<div class="form-group " id="isnotDiv">
										    <label for="isnot" class="control-label col-lg-2">是否上线</label>
										    <div class="col-lg-6">
										    	<select class=" form-control" id="isnot" name="isnot">
										    		<option value="0" <c:if test="${m.isnot=='0'}">selected="selected"</c:if>  >否</option>
										    		<option value="1" <c:if test="${m.isnot=='1'}">selected="selected"</c:if>  >是</option>
										    	</select>
										    </div>
										</div>
										
										<div class="form-group">
											<div class="col-lg-offset-2 col-lg-10">
												<button class="btn btn-danger" type="submit">提交</button>
												<button class="btn btn-info" type="reset" onclick="window.history.back();" >返回</button>
											</div>
										</div> 
									</form>
								</div>

							</div>
						</section>
					</div>
				</div>
				<!-- page end-->
			</section>
		</section>
		<!--main content end-->


		<!--footer start-->
		<jsp:include page="../commFooter.jsp" />
		<!--footer end-->
	</section>

	<!-- js placed at the end of the document so the pages load faster -->
	<!--script start-->
	<jsp:include page="../commScript.jsp" />
	<!--script end-->
	
	
	<script type="text/javascript">
		
		$(function(){
			
		});
	</script>

</body>
</html>
